package cn.ibizlab.odoo.core.odoo_purchase.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_purchase.domain.Purchase_bill_union;
import cn.ibizlab.odoo.core.odoo_purchase.filter.Purchase_bill_unionSearchContext;

/**
 * 实体[Purchase_bill_union] 服务对象接口
 */

public interface IPurchase_bill_unionService{
     boolean create(Purchase_bill_union purchase_bill_union) ;
     void updateBatch(List<Purchase_bill_union> purchase_bill_unions, int batchSize) ;
     Purchase_bill_union get(Integer id) ;
     Purchase_bill_union get(Purchase_bill_union purchase_bill_union) ;
     void createBatch(List<Purchase_bill_union> purchase_bill_unions, int batchSize) ;
     boolean update(Purchase_bill_union purchase_bill_union) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean remove(Integer id) ;

    /**
     * 查询集合 默认查询
     */
    Page<Purchase_bill_union> searchDefault(Purchase_bill_unionSearchContext context) ;

    /**
     * 根据发票查询
     */
     Page<Purchase_bill_union> selectByOdoo_vendor_bill(Integer id) ;

    /**
     * 根据采购订单查询
     */
     Page<Purchase_bill_union> selectByOdoo_purchase_order(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Purchase_bill_union> selectByOdoo_company(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Purchase_bill_union> selectByOdoo_currency(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Purchase_bill_union> selectByOdoo_partner(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Purchase_bill_union convert2Domain(cn.ibizlab.odoo.core.client.model.Ipurchase_bill_union model ,Purchase_bill_union domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ipurchase_bill_union convert2Model(Purchase_bill_union domain , cn.ibizlab.odoo.core.client.model.Ipurchase_bill_union model);

}
